const jwt = require('jsonwebtoken');
const { promisify } = require('util');
//变成promise风格的
exports.sign = promisify(jwt.sign)

exports.verify = promisify(jwt.verify)

exports.decode = promisify(jwt.decode)
